.class public Lcom/estrongs/android/pop/app/scene/show/dialog/c;
.super Lcom/estrongs/android/ui/dialog/x0;
.source "SceneDialogBase.java"

# interfaces
.implements Lcom/estrongs/android/pop/app/scene/show/dialog/b;


# instance fields
.field protected b:Landroid/content/Context;

.field private c:Les/js;

.field private d:Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;


# direct methods
.method public constructor <init>(Landroid/content/Context;Les/js;Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/x0;-><init>(Landroid/content/Context;)V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->b:Landroid/content/Context;

    .line 3
    iput-object p2, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->c:Les/js;

    .line 4
    iput-object p3, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->d:Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;

    .line 5
    instance-of p1, p2, Lcom/estrongs/android/pop/app/unlock/e;

    if-eqz p1, :cond_0

    const/4 p1, 0x0

    .line 6
    invoke-virtual {p0, p1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    :cond_0
    return-void
.end method

.method private c()Landroid/view/View;
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->b:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->d:Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;

    invoke-interface {v1}, Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;->a()I

    move-result v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 3
    new-instance v1, Landroid/view/ViewGroup$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x2

    invoke-direct {v1, v2, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    .line 4
    invoke-super {p0, v0, v1}, Landroid/app/Dialog;->setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-object v0
.end method


# virtual methods
.method public a(Landroid/content/DialogInterface$OnDismissListener;)V
    .locals 0

    .line 4
    invoke-super {p0, p1}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    return-void
.end method

.method public synthetic a(Les/xs;)V
    .locals 1

    if-eqz p1, :cond_0

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->c:Les/js;

    if-eqz v0, :cond_0

    .line 6
    invoke-interface {v0, p1}, Les/js;->a(Les/xs;)V

    .line 7
    :cond_0
    instance-of v0, p1, Les/ws;

    if-eqz v0, :cond_2

    .line 8
    check-cast p1, Les/ws;

    .line 9
    iget p1, p1, Les/xs;->a:I

    const/4 v0, 0x4

    if-eq p1, v0, :cond_1

    const/4 v0, 0x5

    if-eq p1, v0, :cond_1

    goto :goto_0

    :cond_1
    return-void

    .line 10
    :cond_2
    :goto_0
    invoke-virtual {p0}, Landroid/app/Dialog;->dismiss()V

    return-void
.end method

.method public a()Z
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->c:Les/js;

    const/4 v1, 0x0

    if-eqz v0, :cond_2

    iget-object v2, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->d:Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;

    if-nez v2, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    invoke-interface {v0}, Les/js;->isEnabled()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->d:Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;

    invoke-interface {v0}, Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;->isEnabled()Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v1, 0x1

    :cond_1
    return v1

    :cond_2
    :goto_0
    const-string v0, "========SceneDialogHelp or SceneDialogStyle \u4e3a\u7a7a"

    .line 3
    invoke-static {v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;)V

    return v1
.end method

.method public b()V
    .locals 1

    .line 1
    :try_start_0
    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/x0;->show()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 2
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 3
    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->c:Les/js;

    invoke-interface {v0}, Les/js;->a()V

    return-void
.end method

.method public onBackPressed()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->c:Les/js;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Les/js;->onBackPressed()V

    .line 3
    :cond_0
    invoke-super {p0}, Landroid/app/Dialog;->onBackPressed()V

    return-void
.end method

.method public onCreate()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->d:Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;

    invoke-direct {p0}, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->c()Landroid/view/View;

    move-result-object v1

    new-instance v2, Lcom/estrongs/android/pop/app/scene/show/dialog/a;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/scene/show/dialog/a;-><init>(Lcom/estrongs/android/pop/app/scene/show/dialog/c;)V

    invoke-interface {v0, v1, v2}, Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;->a(Landroid/view/View;Lcom/estrongs/android/pop/app/scene/show/dialog/style/f$a;)V

    return-void
.end method

.method public onDestroy()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p0}, Landroid/app/Dialog;->dismiss()V

    :cond_0
    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->c:Les/js;

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->d:Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;

    if-eqz v1, :cond_1

    .line 5
    invoke-interface {v1}, Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;->onDestroy()V

    .line 6
    iput-object v0, p0, Lcom/estrongs/android/pop/app/scene/show/dialog/c;->d:Lcom/estrongs/android/pop/app/scene/show/dialog/style/f;

    :cond_1
    return-void
.end method
